<%@page language="java" contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<title>用户添加</title>
	<meta charset="utf-8">
	<style>
        .w70 {width: 70px !important;}
        .table {
        	padding:10px;
        }
        .form-group{
        	padding-top: 10px;
        }
    </style>
    <%@include file="/common/table.jsp"%>
</head>
<body>
<div class="col-md-12">
	<form class="form-horizontal" id="addForm" action="${r"${ctx}"}/${path}/save.action">
	    <c:if test="${r"${oper=='edit' }"}">
	    	<input type="hidden" name="id" value="${r"${entity.id }"}">
	    </c:if>
	    <#if tree??>
	    <c:if test="${r"${oper=='edit' }"}">
	    	<input type="hidden" name="pid" value="${r"${entity.pid }"}">
	    </c:if>
	    <c:if test="${r"${oper=='input' }"}">
	    	<input type="hidden" name="pid" value="0">
	    </c:if>
	    <c:if test="${r"${oper=='inputSub' }"}">
	    	<input type="hidden" name="pid" value="${r"${entity.pid }"}">
	    </c:if>
	    </#if>
    <#list colList as col>
	    <div class="form-group">
	        <label class="col-sm-3 control-label">${col.colComment.comments}：</label>
	        <div class="col-sm-9">
	            <input type="text" name="${col.colPro}" value="${r"${entity."}${col.colPro}}" class="form-control" placeholder="请输入${col.colComment.comments}"> 
	        </div>
	    </div>
		<div class="hr-line-dashed"></div>
	</#list>
	</form>
</div>
<script>
	var formData = function(){
		return $('#addForm').serialize();
	}
</script>
</body>
</html>